<div id="js-taxonomy-change-proposals-actions" class="item_show__header__action-options js-bulk-action-form hide">
  <%= form_tag(update_taxonomies_proposals_path, method: :post, id: "js-form-taxonomy-change-proposals", class: "form form-defaults w-full") do %>
    <div class="hide">
      <% proposals.each do |proposal| %>
        <%= check_box_tag "proposal_ids[]", proposal.id, false, class: "js-check-all-proposal js-proposal-id-#{proposal.id}" %>
      <% end %>
    </div>

    <% current_component_taxonomy_filters.each do |filter| %>
        <div class="row column">
        <label class="w-full font-semibold block mb-4" for="taxonomies_for_filter_<%= filter.id %>">
            <%= decidim_sanitize_translated(filter.name) %>
            <%= select_tag "taxonomies[]", options_for_select(taxonomy_items_options_for_filter(filter)), include_blank: I18n.t("decidim.taxonomies.prompt"), class: "w-full mt-2", id: "taxonomies_for_filter_#{filter.id}" %>
        </label>
        </div>
    <% end %>

    <div class="flex justify-end gap-x-4 mt-4">
      <%= submit_tag(t("decidim.proposals.admin.proposals.index.change_taxonomies"), id: "js-submit-taxonomy-change-proposals", class: "button button__sm button__secondary small button--simple float-left") %>
      <button class="button button__sm button__secondary js-cancel-bulk-action" type="button"><%= t("decidim.proposals.admin.proposals.index.cancel") %></button>
    </div>
  <% end %>
</div>
